package com.example.project.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;



/**
 * 购物车对象 cart
 *
 * @author changyao
 * @date 2024-12-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Cart implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.AUTO)
    /** 编号 */
    private Long id;

    /** 用户 */
    private String userId;

    /** 商品情况 */
    private String cartGoods;

    /** 商品数量 */
    private Long cartNum;

    /** 商品信息 */
    private Goods goodsInfo;

}
